package com.lonely.common.exception;

import lombok.Getter;

/**
 * 身份验证异常
 *
 * @author fzzf
 */
@Getter
public class AuthException extends RuntimeException {

    private Integer code;

    private final String message;

    public AuthException(String message) {
        this.message = message;
    }

    public AuthException(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

    public AuthException(String message, Throwable e) {
        super(message, e);
        this.message = message;
    }

}
